home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / System / ReqAttack / Install.script < prev    next >
Text File  |  1999-09-07  |  20KB  |  631 lines

  1. ;***************************************************************************
  2. ;*                                                                         *
  3. ;*                            S T R I N G S                                *
  4. ;*                                                                         *
  5. ;***************************************************************************
  6.  
  7.  
  8. (set #langfound 0)
  9.  
  10. (if (= "deutsch" @language)
  11.     (
  12.         (set #langfound 1)
  13.         (set #MSG_OS3 "ReqAttack benötigt mindestens AmigaOS 3.0!")
  14.  
  15.         (set #MSG_README "\nSie sollten mit der Installation erst beginnen, wenn Sie \"README\" gelesen haben!")
  16.         (set #MSG_README_NOW "Jetzt lesen!")
  17.         (set #MSG_README_DONE "Schon getan!")
  18.  
  19.         (set #MSG_WHAT "Was soll installiert werden?")
  20.         (set #MSG_WHAT_PROG "ReqAttack Programm")
  21.         (set #MSG_WHAT_TOOLS "ReqAttack Tools")
  22.         (set #MSG_WHAT_DOCS "Dokumentation")
  23.         (set #MSG_WHAT_BUTTONS "Beispiele für Buttonicons")
  24.         (set #MSG_WHAT_BRUSHES "Beispiele für Requesterlogos")
  25.         (set #MSG_WHAT_ANIMBRUSHES "Beispiele für animierte Requesterlogos")
  26.         (set #MSG_WHAT_PATTERNS "Beispiele für Requesterhintergründe")
  27.         (set #MSG_WHAT_BRUSHDT "ReqAttack Brush Datatype")
  28.         (set #MSG_WHAT_ANIMBRUSHDT "ReqAttack Animbrush Datatype")
  29.         (set #MSG_WHAT_CYREQ "CyReq (klicken Sie auf \"Hilfe ...\")")
  30.  
  31.         (set #MSG_DEST "Wo soll ReqAttack installiert werden?\nEin Verzeichnis \"ReqAttack\" wird automatisch erzeugt, wenn nicht bereits vorhanden!")
  32.         (set #MSG_RAPATH "Wo befindet sich das ReqAttack Verzeichnis auf Ihrer Festplatte?")
  33.         (set #MSG_MAKEDIR "\nErzeuge ReqAttack Verzeichnis ...")
  34.  
  35.         (set #MSG_COPY_ICON "Kopiere Icon ...")
  36.         (set #MSG_COPY_PROG "Kopiere Hauptprogramm ...")
  37.         (set #MSG_COPY_CONFIG "Erzeuge Konfigurationsdatei in \"%s\" ...")
  38.         (set #MSG_COPY_TOOLS "Kopiere Tools ...")
  39.         (set #MSG_COPY_DOCS "Kopiere Dokumentation ...")
  40.         (set #MSG_COPY_BUTTONS "Kopiere Buttonicons ...")
  41.         (set #MSG_COPY_BRUSHES "Kopiere Requesterlogos ...")
  42.         (set #MSG_COPY_ANIMBRUSHES "Kopiere animierte Requesterlogos ...")
  43.         (set #MSG_COPY_PATTERNS "Kopiere Requesterhintergründe ...")
  44.         (set #MSG_COPY_BRUSHDT "Kopiere ReqAttack Brush Datatype ...")
  45.         (set #MSG_COPY_BRUSHDTDESC "Kopiere ReqAttack Brush Datatype Beschreibungsdatei ...")
  46.         (set #MSG_COPY_ANIMBRUSHDT "Kopiere ReqAttack Animbrush Datatype ...")
  47.         (set #MSG_COPY_ANIMBRUSHDTDESC "Kopiere ReqAttack Animbrush Datatype Beschreibungsdatei ...")
  48.         (set #MSG_COPY_CYREQ "Kopiere CyReq ...")
  49.  
  50.         (set #MSG_DOCLANG "Die Dokumentation ist in mehreren Sprachen verfügbar. Wählen Sie die gewünschte Version!")
  51.         (set #MSG_DOC_GERMAN "Deutsch")
  52.         (set #MSG_DOC_ENGLISH "Englisch")
  53.         
  54.         (set #MSG_FA "Es wird nun ein Programm gestartet, mit dem Sie auswählen können, an welcher Stelle in der Startup-Sequence CyReq gestartet werden soll. Sie sollten die vorgeschlagene Position nur ändern, wenn Sie wirklich wissen, was Sie tun!")
  55.         (set #MSG_FA2 "\n\nWenn Sie CyReq bereits in der Startup-Sequence haben, können Sie mit CONTROL + LINKER MAUSTASTE die entsprechenden Zeilen herauslöschen.\n\nVor dem Speichern der geänderten Startup-Sequence wird ein Backup davon gemacht!")
  56.  
  57.         (set #MSG_HELP_CYREQ "Wenn Sie Programme benützen, die bestimmte Requester ersetzen, wie zum Beispiel AssignWedge Utilities, dann sollten Sie CyReq installieren. Andernfalls verursacht ReqAttack durch seine Patches ")
  58.         (set #MSG_HELP_CYREQ2 "eine indirekte Deaktivierung solcher Programme, es sei denn ReqAttack schafft es, seine Patches vor diesen Programmen zu aktivieren. Das Starten von CyReq erfolgt in der Startup-Sequence.\n\n")
  59.         (set #MSG_HELP_CYREQ3 "CyReq sollte auch Crashes beim Beantworten von bestimmten Requestern auf einigen Systemen verhindern. Für mehr Informationen dazu siehe ReqAttack.guide -> Geschichte -> V 1.0!\n\n")
  60.         (set #MSG_HELP_CYREQ4 "Dieses Installations-Skript erlaubt Ihnen mit Hilfe eines externen Programmes genau festzulegen, an welcher Stelle in der Startup-Sequence CyReq gestartet werden soll. ")
  61.         
  62.         (set #MSG_NOHELP "Es gibt keine Hilfe. Sorry!")
  63.         (set #MSG_DONE "\nInstallation abgeschlossen!")
  64.  
  65.     )
  66. )
  67.  
  68. (if (= 0 #langfound)
  69.     (
  70.         (set #MSG_OS3 "ReqAttack at least needs AmigaOS 3.0!")
  71.  
  72.         (set #MSG_README "\nYou should start installation only after having read \"README\"!")
  73.         (set #MSG_README_NOW "Read now!")
  74.         (set #MSG_README_DONE "Already done!")
  75.  
  76.         (set #MSG_WHAT "What do you want to install?")
  77.         (set #MSG_WHAT_PROG "ReqAttack program")
  78.         (set #MSG_WHAT_TOOLS "ReqAttack tools")
  79.         (set #MSG_WHAT_DOCS "Documentation")
  80.         (set #MSG_WHAT_BUTTONS "Some example button images")
  81.         (set #MSG_WHAT_BRUSHES "Some example requester logos")
  82.         (set #MSG_WHAT_ANIMBRUSHES "Some example animated requester logos")
  83.         (set #MSG_WHAT_PATTERNS "Some example requester background patterns")
  84.         (set #MSG_WHAT_BRUSHDT "ReqAttack Brush Datatype")
  85.         (set #MSG_WHAT_ANIMBRUSHDT "ReqAttack Animbrush Datatype")
  86.         (set #MSG_WHAT_CYREQ "CyReq (click on \"Help...\")")
  87.  
  88.         (set #MSG_DEST "Where do you wish to install ReqAttack?\nA drawer called \"ReqAttack\" will be created automatically, if not already existing!")
  89.         (set #MSG_RAPATH "Where on your hard disk is your ReqAttack directory?")
  90.         (set #MSG_MAKEDIR "\nCreating ReqAttack directory ...")
  91.  
  92.         (set #MSG_COPY_ICON "Copying icon ...")
  93.         (set #MSG_COPY_PROG "Copying main program ...")
  94.         (set #MSG_COPY_CONFIG "Creating configuration file in \"%s\" ...")
  95.         (set #MSG_COPY_TOOLS "Copying tools ...")
  96.         (set #MSG_COPY_DOCS "Copying documentation ...")
  97.         (set #MSG_COPY_BUTTONS "Copying button images ...")
  98.         (set #MSG_COPY_BRUSHES "Copying requester logos ...")
  99.         (set #MSG_COPY_ANIMBRUSHES "Copying animated requester logos ...")
  100.         (set #MSG_COPY_PATTERNS "Copying requester background patterns ...")
  101.         (set #MSG_COPY_BRUSHDT "Copying ReqAttack Brush Datatype ...")
  102.         (set #MSG_COPY_BRUSHDTDESC "Copying ReqAttack Brush Datatype description file ...")
  103.         (set #MSG_COPY_ANIMBRUSHDT "Copying ReqAttack Animbrush Datatype ...")
  104.         (set #MSG_COPY_ANIMBRUSHDTDESC "Copying ReqAttack Animbrush Datatype description file ...")
  105.         (set #MSG_COPY_CYREQ "Copying CyReq ...")
  106.  
  107.         (set #MSG_DOCLANG "The documentation is available in different languages. Choose the one you like!")
  108.         (set #MSG_DOC_GERMAN "German")
  109.         (set #MSG_DOC_ENGLISH "English")
  110.  
  111.         (set #MSG_FA "Now a program will be started that allows you to select at which position to insert CyReq in the Startup-Sequence. Change the predefined position only if you really know what you do!")
  112.         (set #MSG_FA2 "\n\nIf CyReq is already in your Startup-Sequence you can delete the corresponding lines by using CONTROL + LEFT MOUSE BUTTON.\n\nBefore saving the changed Startup-Sequence a backup of it will be created!")
  113.  
  114.         (set #MSG_HELP_CYREQ "If you use programs which replace certain requesters - for example AssignWedge utilities - you should install CyReq. Otherwise ReqAttack because of its patches will cause ")
  115.         (set #MSG_HELP_CYREQ2 "an indirect de-activation of such programs, unless ReqAttack manages to activate its patches before these other programs do. CyReq will be started in Startup-Sequence.\n\n")
  116.         (set #MSG_HELP_CYREQ3 "CyReq can also prevent crashes when replying certain requesters on some systems. For more info see ReqAttack.guide -> History -> V 1.0!\n\n")
  117.         (set #MSG_HELP_CYREQ4 "This installation script with the help of an external program allows you to exactly specify at which point CyReq shall be launched in the Startup-Sequence. ")
  118.  
  119.         (set #MSG_NOHELP "No help available. Sorry!")
  120.         (set #MSG_DONE "\nInstallation complete!")
  121.     )
  122. )
  123.  
  124. ;***************************************************************************
  125. ;*                                                                         *
  126. ;*                               S T A R T                                 *
  127. ;*                                                                         *
  128. ;***************************************************************************
  129.  
  130.  
  131. (set #WHAT_PROG           1)
  132. (set #WHAT_TOOLS       2)
  133. (set #WHAT_DOCS           4)
  134. (set #WHAT_BUTTONS        8)
  135. (set #WHAT_BRUSHES       16)
  136. (set #WHAT_ANIMBRUSHES 32)
  137. (set #WHAT_PATTERNS    64)
  138. (set #WHAT_BRUSHDT        128)
  139. (set #WHAT_ANIMBRUSHDT 256)
  140. (set #WHAT_CYREQ       512)
  141.  
  142. (set #OSVERSION (/ (getversion) 65536))
  143.  
  144. (if (< #OSVERSION 39)
  145.     (abort #MSG_OS3)
  146. )
  147.  
  148. (if (= 1 (askbool
  149.             (prompt #MSG_README)
  150.             (choices #MSG_README_NOW #MSG_README_DONE)
  151.             (help #MSG_NOHELP)
  152.          )
  153.     )
  154.     (run "multiview README")
  155. )
  156.  
  157. (if (= 1 (exists("S:ReqAttack.installinfo")))
  158.     (set #default_what 
  159.         (+ #WHAT_PROG #WHAT_TOOLS #WHAT_DOCS)
  160.     )
  161.     (set #default_what
  162.         (+ #WHAT_PROG #WHAT_TOOLS #WHAT_DOCS #WHAT_BUTTONS #WHAT_BRUSHES
  163.            #WHAT_ANIMBRUSHES #WHAT_PATTERNS #WHAT_BRUSHDT #WHAT_ANIMBRUSHDT
  164.         )
  165.     )
  166. )
  167.  
  168. (if (= 1 (exists "C:CyReq"))
  169.     (set #default_what (+ #default_what #WHAT_CYREQ))
  170. )
  171.  
  172. (set #what
  173.     (askoptions
  174.         (prompt #MSG_WHAT)
  175.         (choices #MSG_WHAT_PROG
  176.                  #MSG_WHAT_TOOLS
  177.                  #MSG_WHAT_DOCS
  178.                  #MSG_WHAT_BUTTONS
  179.                  #MSG_WHAT_BRUSHES
  180.                  #MSG_WHAT_ANIMBRUSHES
  181.                  #MSG_WHAT_PATTERNS
  182.                  #MSG_WHAT_BRUSHDT
  183.                  #MSG_WHAT_ANIMBRUSHDT
  184.                  #MSG_WHAT_CYREQ)
  185.         (help #MSG_HELP_CYREQ #MSG_HELP_CYREQ2 #MSG_HELP_CYREQ3 #MSG_HELP_CYREQ4)
  186.         (default #default_what)
  187.     )
  188. )
  189.  
  190. ;** Get or make ReqAttack directory **
  191.  
  192. (if (<> 0 (bitand #WHAT_PROG #what))
  193.     (
  194.         (set #defdir @default-dest)
  195.         
  196.         ;** See if older version exists **
  197.  
  198.         (if (= 1 (exists "S:ReqAttack.installinfo"))
  199.             (
  200.                 (copyfiles
  201.                     (source "S:ReqAttack.installinfo")
  202.                     (dest "ENV:")
  203.                     (newname "ReqAttackInstallInfo")
  204.                 )
  205.                 (set #envdefdir (getenv "ReqAttackInstallInfo"))
  206.                 (if (<> "" #envdefdir)
  207.                     (set #defdir (pathonly #envdefdir))
  208.                 )
  209.                 (delete "ENV:ReqAttackInstallInfo")
  210.             )
  211.         )
  212.  
  213.         (set #dest
  214.             (expandpath
  215.                 (askdir
  216.                     (prompt #MSG_DEST)
  217.                     (help #MSG_NOHELP)
  218.                     (default #defdir)
  219.                 )
  220.             )
  221.         )
  222.  
  223.         ;** Make directory if necessary **
  224.  
  225.         (if (= 0 (exists (tackon #dest "ReqAttack")))
  226.             (
  227.                 (makedir (tackon #dest "ReqAttack")
  228.                     (prompt #MSG_MAKEDIR)
  229.                     (help #MSG_NOHELP)
  230.                     (confirm)
  231.                 )
  232.                 (copyfiles
  233.                     (prompt #MSG_COPY_ICON)
  234.                     (source "/ReqAttack.info")
  235.                     (dest #dest)
  236.                     (help #MSG_NOHELP)
  237.                     (confirm)
  238.                 )
  239.                 (run ("installtools/noiconpos \"%s\"" (tackon #dest "ReqAttack")))
  240.             )
  241.         )
  242.  
  243.         (set #dest (tackon #dest "ReqAttack"))
  244.         (set @default-dest #dest)
  245.         (textfile
  246.             (dest "S:ReqAttack.installinfo")
  247.             (append #dest)
  248.         )
  249.     )
  250.     
  251.     (
  252.         ;** if ReqAttack directory required try to retrieve it
  253.         ;**  from S:ReqAttack.installinfo or ask the user 
  254.  
  255.         (if (<> 0 (bitand #what (+ #WHAT_TOOLS #WHAT_DOCS #WHAT_BUTTONS #WHAT_BRUSHES #WHAT_ANIMBRUSHES #WHAT_PATTERNS)))
  256.             (
  257.                 (set #ok 0)
  258.                 (set #dest @default-dest)
  259.                 
  260.                 (if (= 1 (exists "S:ReqAttack.installinfo"))
  261.                     (
  262.                         (copyfiles
  263.                             (source "S:ReqAttack.installinfo")
  264.                             (dest "ENV:")
  265.                             (newname "ReqAttackInstallInfo")
  266.                         )
  267.                         (set #dest (getenv "ReqAttackInstallInfo"))
  268.                         (set @default-dest #dest)
  269.                         (if (<> "" #dest)
  270.                             (set #ok 1)
  271.                         )
  272.                         (delete "ENV:ReqAttackInstallInfo")
  273.                     )
  274.                 )
  275.  
  276.                 (while (= 0 #ok)
  277.                     (
  278.                         (set #dest
  279.                             (expandpath
  280.                                 (askdir
  281.                                     (prompt #MSG_RAPATH)
  282.                                     (help #MSG_NOHELP)
  283.                                     (default #dest)
  284.                                 )
  285.                             )
  286.                         )
  287.                         (if (= 2 (exists (tackon #dest "ReqAttack")))
  288.                             (
  289.                                 (set #dest (tackon #dest "ReqAttack"))
  290.                                 (set #ok 1)
  291.                             )
  292.                             (
  293.                                 (if (patmatch "ReqAttacK" (fileonly #dest))
  294.                                     (
  295.                                         (if (= 2 (exists #dest))
  296.                                             (set #ok 1)
  297.                                         )
  298.                                     )
  299.                                 )
  300.                             )
  301.                         )
  302.                     )
  303.                 )
  304.                 (set @default-dest #dest)
  305.             )
  306.         )
  307.     )
  308. )
  309.  
  310. ;***************************************************************************
  311. ;*                                                                         *
  312. ;*                            P R O G R A M                                *
  313. ;*                                                                         *
  314. ;***************************************************************************
  315.  
  316.  
  317. (if (<> 0 (bitand #WHAT_PROG #what))
  318.     (
  319.         (copyfiles
  320.             (prompt #MSG_COPY_PROG)
  321.             (source "ReqAttack")
  322.             (dest #dest)
  323.             (infos)
  324.             (help #MSG_NOHELP)
  325.             (confirm)
  326.         )
  327.         (tooltype
  328.             (dest (tackon #dest "ReqAttack"))
  329.             (settooltype "HOMEDIR" #dest)
  330.         )
  331.  
  332.         (if (= 1 (exists "SYS:WBStartup/ReqAttack"))
  333.             (copyfiles
  334.                 (prompt #MSG_COPY_PROG)
  335.                 (source "ReqAttack")
  336.                 (dest "SYS:WBStartup")
  337.                 (help #MSG_NOHELP)
  338.                 (confirm)
  339.             )
  340.         )
  341.  
  342.         (if (= 0 (exists "ENVARC:ReqAttack.prefs"))
  343.             (
  344.                 (copyfiles
  345.                     (prompt (#MSG_COPY_CONFIG "ENVARC:"))
  346.                     (source "ReqAttack.prefs")
  347.                     (dest "ENVARC:")
  348.                     (help #MSG_NOHELP)
  349.                     (confirm)
  350.                 )
  351.                 (copyfiles
  352.                     (prompt (#MSG_COPY_CONFIG "ENV:"))
  353.                     (source "ENVARC:ReqAttack.prefs")
  354.                     (dest "ENV:")
  355.                     (help #MSG_NOHELP)
  356.                     (confirm)
  357.                 )
  358.             )
  359.         )
  360.     )
  361. )
  362.  
  363. ;***************************************************************************
  364. ;*                                                                         *
  365. ;*                              T O O L S                                  *
  366. ;*                                                                         *
  367. ;***************************************************************************
  368.  
  369.  
  370. (if (<> 0 (bitand #WHAT_TOOLS #what))
  371.     (
  372.         (copyfiles
  373.             (prompt #MSG_COPY_TOOLS)
  374.             (source "Tools")
  375.             (dest (tackon #dest "Tools"))
  376.             (all)
  377.             (infos)
  378.             (help #MSG_NOHELP)
  379.             (confirm)
  380.         )
  381.         (copyfiles
  382.             (source "Tools.info")
  383.             (dest #dest)
  384.         )
  385.     )
  386. )
  387.  
  388. ;***************************************************************************
  389. ;*                                                                         *
  390. ;*                               D O C S                                   *
  391. ;*                                                                         *
  392. ;***************************************************************************
  393.  
  394.  
  395. (if (<> 0 (bitand #WHAT_DOCS #what))
  396.     (
  397.         (run ("delete \"%s/Docs/#?\" QUIET >NIL:" #dest))
  398.  
  399.         (set #defdoclang 0)
  400.         (if (= "deutsch" @language) (set #defdoclang 1))
  401.  
  402.         (set #doclang 
  403.             (askchoice
  404.                 (prompt #MSG_DOCLANG)
  405.                 (choices #MSG_DOC_ENGLISH #MSG_DOC_GERMAN)
  406.                 (default #defdoclang)
  407.                 (help #MSG_NOHELP)
  408.             )
  409.         )
  410.         (set #docsource
  411.             (cat "Docs/"
  412.                 (select #doclang "English" "Deutsch")
  413.             )
  414.         )
  415.  
  416.         (copyfiles
  417.             (prompt #MSG_COPY_DOCS)
  418.             (source #docsource)
  419.             (dest (tackon #dest "Docs"))
  420.             (all)
  421.             (infos)
  422.             (help #MSG_NOHELP)
  423.             (confirm)
  424.         )
  425.         (copyfiles
  426.             (source "Docs.info")
  427.             (dest #dest)
  428.         )
  429.     )
  430. )
  431.  
  432. ;***************************************************************************
  433. ;*                                                                         *
  434. ;*                            B U T T O N S                                *
  435. ;*                                                                         *
  436. ;***************************************************************************
  437.  
  438.  
  439. (if (<> 0 (bitand #WHAT_BUTTONS #what))
  440.     (
  441.         (copyfiles
  442.             (prompt #MSG_COPY_BUTTONS)
  443.             (source "Buttons")
  444.             (dest (tackon #dest "Buttons"))
  445.             (all)
  446.             (infos)
  447.             (help #MSG_NOHELP)
  448.             (confirm)
  449.         )
  450.         (copyfiles
  451.             (source "Buttons.info")
  452.             (dest #dest)
  453.         )
  454.     )
  455. )
  456.  
  457. ;***************************************************************************
  458. ;*                                                                         *
  459. ;*                            B R U S H E S                                *
  460. ;*                                                                         *
  461. ;***************************************************************************
  462.  
  463.  
  464. (if (<> 0 (bitand #WHAT_BRUSHES #what))
  465.     (
  466.         (copyfiles
  467.             (prompt #MSG_COPY_BRUSHES)
  468.             (source "Logos")
  469.             (dest (tackon #dest "Logos"))
  470.             (all)
  471.             (infos)
  472.             (help #MSG_NOHELP)
  473.             (confirm)
  474.         )
  475.         (copyfiles
  476.             (source "Logos.info")
  477.             (dest #dest)
  478.         )
  479.     )
  480. )
  481.  
  482. ;***************************************************************************
  483. ;*                                                                         *
  484. ;*                        A N I M B R U S H E S                            *
  485. ;*                                                                         *
  486. ;***************************************************************************
  487.  
  488.  
  489. (if (<> 0 (bitand #WHAT_ANIMBRUSHES #what))
  490.     (
  491.         (copyfiles
  492.             (prompt #MSG_COPY_ANIMBRUSHES)
  493.             (source "AnimLogos")
  494.             (dest (tackon #dest "AnimLogos"))
  495.             (all)
  496.             (infos)
  497.             (help #MSG_NOHELP)
  498.             (confirm)
  499.         )
  500.         (copyfiles
  501.             (source "AnimLogos.info")
  502.             (dest #dest)
  503.         )
  504.     )
  505. )
  506.  
  507. ;***************************************************************************
  508. ;*                                                                         *
  509. ;*                           P A T T E R N S                               *
  510. ;*                                                                         *
  511. ;***************************************************************************
  512.  
  513.  
  514. (if (<> 0 (bitand #WHAT_PATTERNS #what))
  515.     (
  516.         (copyfiles
  517.             (prompt #MSG_COPY_PATTERNS)
  518.             (source "Patterns")
  519.             (dest (tackon #dest "Patterns"))
  520.             (all)
  521.             (infos)
  522.             (help #MSG_NOHELP)
  523.             (confirm)
  524.         )
  525.         (copyfiles
  526.             (source "Patterns.info")
  527.             (dest #dest)
  528.         )
  529.     )
  530. )
  531.  
  532. ;***************************************************************************
  533. ;*                                                                         *
  534. ;*                           D A T A T Y P E S                             *
  535. ;*                                                                         *
  536. ;***************************************************************************
  537.  
  538. (if (<> 0 (bitand #WHAT_BRUSHDT #what))
  539.     (
  540.         (copylib
  541.             (prompt #MSG_COPY_BRUSHDT)
  542.             (source "DataTypes/Classes/rabrush.datatype")
  543.             (dest   "SYS:classes/datatypes")
  544.             (confirm)
  545.             (help #MSG_NOHELP)
  546.         )
  547.         (copyfiles
  548.             (prompt #MSG_COPY_BRUSHDTDESC)
  549.             (source "DataTypes/Devs/RABrush")
  550.             (dest "DEVS:Datatypes")
  551.             (infos)
  552.             (noposition)
  553.             (confirm)
  554.             (help #MSG_NOHELP)
  555.         )
  556.     )
  557. )
  558.  
  559. (if (<> 0 (bitand #WHAT_ANIMBRUSHDT #what))
  560.     (
  561.         (copylib
  562.             (prompt #MSG_COPY_ANIMBRUSHDT)
  563.             (source "DataTypes/Classes/raanimbrush.datatype")
  564.             (dest   "SYS:classes/datatypes")
  565.             (confirm)
  566.             (help #MSG_NOHELP)
  567.         )
  568.         (copyfiles
  569.             (prompt #MSG_COPY_ANIMBRUSHDTDESC)
  570.             (source "DataTypes/Devs/RAAnimBrush")
  571.             (dest "DEVS:Datatypes")
  572.             (infos)
  573.             (noposition)
  574.             (confirm)
  575.             (help #MSG_NOHELP)
  576.         )
  577.     )
  578. )
  579.  
  580.  
  581. ;***************************************************************************
  582. ;*                                                                         *
  583. ;*                               C Y R E Q                                 *
  584. ;*                                                                         *
  585. ;***************************************************************************
  586.  
  587. (if (<> 0 (bitand #WHAT_CYREQ #what))
  588.     (
  589.         (set #actversion 0)
  590.         (set #installversion (getversion "Tools/CyReq"))
  591.         
  592.         (if (= 1 (exists ("C:CyReq")))
  593.             (set #actversion (getversion "SYS:c/CyReq"))
  594.         )
  595.         (if (> #installversion #actversion)
  596.             (
  597.                 (copyfiles
  598.                     (prompt #MSG_COPY_CYREQ)
  599.                     (source "Tools/CyReq")
  600.                     (dest "SYS:c")
  601.                     (help #MSG_NOHELP)
  602.                     (confirm)
  603.                 )
  604.             )
  605.         )
  606.  
  607.         (if (<> 0 (run "installtools/checkprogstart S:Startup-Sequence CyReq"))
  608.             (
  609.                 (textfile
  610.                     (dest "T:cyreq_Start")
  611.                     (append (";** CyReq: Redirect EasyRequestArgs and AutoRequest to BuildReq, HandleReq, FreeReq\nC:CyReq\n;**"))
  612.                     (safe)
  613.                 )
  614.                 (message #MSG_FA #MSG_FA2)
  615.                 (run "installtools/FileAttack T:cyreq_Start S:Startup-Sequence Backup S:Startup-Sequence.bak DefaultAfter #?SetPatch#?")
  616.                 (delete "T:cyreq_Start")
  617.             )
  618.         )
  619.     )
  620. )
  621.  
  622. ;***************************************************************************
  623. ;*                                                                         *
  624. ;*                             T H E   E N D                               *
  625. ;*                                                                         *
  626. ;***************************************************************************
  627.  
  628.  
  629. (exit #MSG_DONE (quiet))
  630.  
  631.